' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%      N a m e :   M e t i _ S C A R A _ V 1 1 . t x t                         D a t e :   1 8   A u g   2 0 2 2   Q%
 
 ' Q%  A u t h o r :   L e o n a r d o                                                                                 Q%
 
 ' Q%    S c o p e :   T e s t   o v e r a l l   f u n c t i o n a l i t y                                             Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%H a r d w a r e :   B L D C   m o t o r   w i t h   e n c o d e r                                                 Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%  N o t e :   C O B O T   u p d a t e                                                     1 4   J u l   2 0 2 2   Q%
 
 ' Q%                                                                                                                  Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 O p t i o n   S p e e d   9 
 
 ' B e e p   " 2 5 0 0   1 0 0 ,   1 5 0 0   1 0 0 " 
 
 
 
 ' V a r i a b l e   N u m e r i c   D e b u g   =   0   '   1   =   D E B U G       0   =   N O R M A L 
 
 
 
 R e s t o r e V a r s 
 
 
 
 L o a d   i m a g e s \ M e t i _ S C A R A _ P V C . j p g 
 
 ' B e e p   " 2 5 0 0   2 0 0 ,   1 5 0 0   2 0 0 ,   2 5 0 0   3 0 0 ,   0 5 0 0 ,   1 5 0 0   3 0 0 " 
 
 ' T T S   S e l e c t V o i c e   L a n g u a g e 
 
 T T S   S e t V o l u m e     1 0 0         ' 0   =   m u t e 
 
 T T S   S e t S p e e d   - 1 
 
 
 
 ' W i n d o w   M i n S i z e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o C o b o t         =   5 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m C o b o t   =   5 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s F r o m C o b o t     =   5 3 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %%%%%
 
 '   Q%  V A R I A B L E   I N I T I A L I Z A T I O N S   &   A S S I G N E M E N T S     Q%  %      %  %%%%  %%%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%    %    %  %    %%
 
 V a r i a b l e   N u m e r i c   S l o t _ M _ 1               =   1 0 1       ' v e r t i c a l 
 
 V a r i a b l e   N u m e r i c   S l o t _ M _ 2               =   2 0 1       ' a r m   1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M _ 3               =   3 0 1       ' a r m   2 
 
 V a r i a b l e   N u m e r i c   S l o t _ M _ 4               =   4 0 1       ' r o t a t i n g   c l a m p 
 
 V a r i a b l e   N u m e r i c   S l o t _ M _ 5               =   5 0 1 	 ' c l a m p   o p e n / c l o s e   c o m m a n d 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R _ S c a r a   =     7 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G _ S c a r a   =     8 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B _ S c a r a   =     9 
 
 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ L e d R _ C l a m p   =   1 9 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ L e d G _ C l a m p   =   2 0 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ L e d B _ C l a m p   =   2 1 
 
 ' 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n S c o p e     =     1 3 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S o f t w a r e   l i m i t s 
 
 V a r i a b l e   N u m e r i c   M 1 m a x   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 1 m i n   =           0 
 
 V a r i a b l e   N u m e r i c   M 2 m a x   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 2 m i n   =           0 
 
 V a r i a b l e   N u m e r i c   M 3 m a x   =       3 6 0 
 
 V a r i a b l e   N u m e r i c   M 3 m i n   =           0 
 
 V a r i a b l e   N u m e r i c   M 4 m a x   =       2 6 5 
 
 V a r i a b l e   N u m e r i c   M 4 m i n   =         9 5 
 
 
 
 K e y   1   B t n C o o r d _ M 1 
 
 K e y   2   B t n C o o r d _ M 2 
 
 K e y   3   B t n C o o r d _ M 3 
 
 K e y   4   B t n C o o r d _ M 4 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%
 
 '   Q%  B U T T O N S                                                                     Q%  %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %
 
 B u t t o n   1   L a b e l   H o m e 
 
 B u t t o n   H o m e   T e x t   " H o m e " 
 
 B u t t o n   H o m e   C o l o r   M e d i u m B l u e 
 
 
 
 B u t t o n   2   L a b e l   " B t n C o o r d _ M 1 " 
 
 B u t t o n   B t n C o o r d _ M 1   T e x t   " M 1   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 B u t t o n   3   L a b e l   " B t n C o o r d _ M 2 " 
 
 B u t t o n   B t n C o o r d _ M 2   T e x t   " M 2   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 2   C o l o r   L i g h t B l u e 
 
 B u t t o n   4   L a b e l   " B t n C o o r d _ M 3 " 
 
 B u t t o n   B t n C o o r d _ M 3   T e x t   " M 3   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 3   C o l o r   L i g h t B l u e 
 
 B u t t o n   5   L a b e l   " B t n C o o r d _ M 4 " 
 
 B u t t o n   B t n C o o r d _ M 4   T e x t   " M 4   =   ? " 
 
 B u t t o n   B t n C o o r d _ M 4   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   1 2   L a b e l   O p e n G r i p p e r 
 
 B u t t o n   O p e n G r i p p e r   T e x t   " O p e n   G r i p p e r " 
 
 B u t t o n   O p e n G r i p p e r   C o l o r   B i s q u e 
 
 B u t t o n   1 3   L a b e l   C l o s e G r i p p e r 
 
 B u t t o n   C l o s e G r i p p e r   T e x t   " C l o s e   G r i p p e r " 
 
 B u t t o n   C l o s e G r i p p e r   C o l o r   B i s q u e 
 
 
 
 ' B u t t o n   4   L a b e l   " B t n A b s o l u t e C o o r d _ M 1 " 
 
 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 1   T e x t   " A b s   M 1 =   ? " 
 
 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 ' B u t t o n   5   L a b e l   " B t n A b s o l u t e C o o r d _ M 2 " 
 
 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 2   T e x t   " A b s   M 2   =   ? " 
 
 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 2   C o l o r   L i g h t B l u e 
 
 ' B u t t o n   6   L a b e l   " B t n A b s o l u t e C o o r d _ M 3 " 
 
 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 3   T e x t   " A b s   M 3   =   ? " 
 
 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 3   C o l o r   L i g h t B l u e 
 
 
 
 ' B u t t o n   7   L a b e l   T e m p M 1 
 
 ' B u t t o n   T e m p M 1   T e x t   " T e m p M 1 =   " 
 
 ' B u t t o n   T e m p M 1   C o l o r   M i s t y R o s e 
 
 ' B u t t o n   8   L a b e l   T e m p M 2 
 
 ' B u t t o n   T e m p M 2   T e x t   " T e m p M 2 =   " 
 
 ' B u t t o n   T e m p M 2   C o l o r   M i s t y R o s e 
 
 ' B u t t o n   9   L a b e l   T e m p M 3 
 
 ' B u t t o n   T e m p M 3   T e x t   " T e m p M 3 =   " 
 
 ' B u t t o n   T e m p M 3   C o l o r   M i s t y R o s e 
 
 ' 
 
 ' B u t t o n   1 1   L a b e l   V o l t M 1 
 
 ' B u t t o n   V o l t M 1   T e x t   " V o l t M 1 = " 
 
 ' B u t t o n   V o l t M 1   C o l o r   L i g h t G r e e n 
 
 ' B u t t o n   1 2   L a b e l   V o l t M 2 
 
 ' B u t t o n   V o l t M 2   T e x t   " V o l t M 2 = " 
 
 ' B u t t o n   V o l t M 2   C o l o r   L i g h t G r e e n 
 
 ' B u t t o n   1 3   L a b e l   V o l t M 3 
 
 ' B u t t o n   V o l t M 3   T e x t   " V o l t M 3 = " 
 
 ' B u t t o n   V o l t M 3   C o l o r   L i g h t G r e e n 
 
 ' 
 
 B u t t o n   1 6   L a b e l   C l o s e A l l 
 
 B u t t o n   C l o s e A l l   T e x t   " C L O S E   A L L " 
 
 B u t t o n   C l o s e A l l   C o l o r   R e d 
 
 
 
 B u t t o n   1 7   L a b e l   E x e c C o b o t 
 
 B u t t o n   E x e c C o b o t   T e x t   " E x e c   C o b o t " 
 
 B u t t o n   E x e c C o b o t   C o l o r   S t e e l B l u e 
 
 B u t t o n   1 8   L a b e l   S e l e c t S e q u e n c e 
 
 B u t t o n   S e l e c t S e q u e n c e   T e x t   " S e l e c t   C O B O T   s e q u e n c e " 
 
 B u t t o n   S e l e c t S e q u e n c e   C o l o r   S t e e l B l u e 
 
 
 
 B u t t o n   2 0   L a b e l   M o t o r T e s t 
 
 B u t t o n   M o t o r T e s t   T e x t   " M o t o r T e s t " 
 
 B u t t o n   M o t o r T e s t   C o l o r   O r a n g e 
 
 
 
 ' B u t t o n   1 6   T e x t   E m e r g e n c y 
 
 ' B u t t o n   E m e r g e n c y   T e x t   " E M E R G E N C Y " 
 
 ' B u t t o n   E m e r g e n c y   C o l o r   R e d 
 
 ' B u t t o n   E m e r g e n c y   S l o t     S l o t _ E m e r g e n c y 
 
 
 
 B u t t o n   2 2   L a b e l   R e d O n 
 
 B u t t o n   R e d O n   C o l o r   R e d 
 
 B u t t o n   2 3   L a b e l   G r e e n O n 
 
 B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 B u t t o n   2 4   L a b e l   Y e l l o w O n 
 
 B u t t o n   Y e l l o w O n   C o l o r   Y e l l o w 
 
 B u t t o n   2 5   L a b e l   B l u e O n 
 
 B u t t o n   B l u e O n   C o l o r   M e d i u m B l u e 
 
 B u t t o n   2 6   L a b e l   W h i t e O n 
 
 B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 B u t t o n   2 7   L a b e l   R g b O f f 
 
 B u t t o n   R g b O f f   C o l o r   B l a c k 
 
 
 
 B u t t o n   2 8   L a b e l   E n a b l e V o i c e 
 
 B u t t o n   E n a b l e V o i c e   T e x t   " E n a b l e   V o i c e " 
 
 B u t t o n   E n a b l e V o i c e   C o l o r   S k y B l u e 
 
 B u t t o n   2 9   L a b e l   D i s a b l e V o i c e 
 
 B u t t o n   D i s a b l e V o i c e   T e x t   " D i s a b l e   V o i c e " 
 
 B u t t o n   D i s a b l e V o i c e   C o l o r   S k y B l u e 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   K E Y S 
 
 K e y   R i g h t 	 	   E x e c K e y s 
 
 K e y   L e f t   	 	   E x e c K e y s 
 
 K e y   U p   	 	 	   E x e c K e y s 
 
 K e y   D o w n   	 	   E x e c K e y s 
 
 K e y   P a g e u p 	 	   E x e c K e y s 
 
 K e y   P a g e d o w n 	   E x e c K e y s 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                 Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 L o a d   T h e r e m i n o _ M o d B u s . e x e 
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 L o a d   C L A M P . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ S t r i n g s . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 L o a d   T h e r e m i n o _ S i g n a l S c o p e . e x e 
 
 ' L o a d   T e r m i n a l _ T r a n s m i t . e x e 
 
 ' L o a d   T e r m i n a l _ R e c e i v e . e x e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%%  %%%%%  %%%%%  %%%%%
 
 '   Q%    S T A R T   F R O M   H E R E                                                   Q%    %%%%      %      %%%%%  %%%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%      %      %      %  %    %%      %
 
 H o m e 
 
 ' C o n t r o l s   O p e n T e x t B o x 
 
 D i s a b l e A l l B u t t o n s 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 T T S   S p e a k   " R e a d y ,   w a i t i n g   c o m m a n d . " 
 
 P r i n t   T T S v o i c e s 
 
 E n a b l e A l l B u t t o n s 
 
 U p d a t e B u t t o n s 
 
 S h o w S e q u e n c e N a m e 
 
 L o a d   H i d e 
 
 E n a b l e V o i c e 
 
 ' D i s a b l e V o i c e 
 
 O p e n G r i p p e r 
 
 L o o p 
 
 S t o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%  %      %%%%  %%%%  %%%%
 
 '   Q%  C L O S E   A L L                                                                 Q%  %      %      %    %  %%%%  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%  %%%%  %%%%
 
 L a b e l   C l o s e A l l 
 
 	 R e d O n 
 
 	 S a v e V a r s 
 
 	 S t o p C o b o t 
 
 	 W i n d o w   S i z a b l e 
 
 	 O p e n G r i p p e r 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   0 
 
 	 T T S   S p e a k   " E n d   O f   P r o g r a m . " 
 
 	 L o a d   C l o s e A p p s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )           Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 S a v e V a r s 
 
 	 R e d O n 
 
 	 S t o p C o b o t 
 
 	 O p e n G r i p p e r 
 
 	 E n a b l e A l l B u t t o n s 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n S c o p e )   =   0 
 
 	 T T S   S p e a k   " E n d   O f   P r o g r a m . " 
 
 E n d 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                           Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 U p d a t e B u t t o n s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 '   0 . 0 2   s e c .   o r   m o r e   t o   a l l o w   t i m e   f o r   k e y s   a n d   o t h e r   t a s k s 
 
 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   1 6 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   1 6 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S A V E   L O A D   V A R S                                                       Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S a v e V a r s 
 
 	 s 1 1   =   S e q u e n c e N a m e 
 
 	 S a v e   V a r s 
 
 	 P r i n t   C R L F   +   " S A V E D   S E Q U E N C E N A M E   =   "   +   S e q u e n c e N a m e   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   R e s t o r e V a r s 
 
 	 L o a d   V a r s 
 
 	 S e q u e n c e N a m e   =   s 1 1 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %%%%%  %%%%
 
 '   Q%  3   M O T O R S   5 7 A I M 1 6   H O M E                                             Q%  %%%%%  %    %  %      %  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %      %  %%%%  %      %  %%%%
 
 L a b e l   H o m e 
 
 	 T T S   S p e a k   " G o i n g   t o   H o m e . " 
 
 	 S l o t ( S l o t _ M _ 4 )   =   1 0 9   	 	 	 ' d e g r e e 
 
 	 S l o t ( S l o t _ M _ 5 )   =   1 0 0 0           	 	 ' c l o s e 
 
 	 
 
 	 S l o t   7 0   =   0 
 
 	 W a i t   S e c o n d s   0 . 5 
 
 	 S l o t   7 0   =   1 
 
 	 W a i t   S e c o n d s   0 . 5 
 
 	 W a i t Z e r o P o s 
 
 	 S l o t   7 0   =   0 
 
 	 W a i t   S e c o n d s   0 . 5 
 
 	 
 
 	 S l o t ( S l o t _ M _ 1 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M _ 1 )   =   3 0 0         	 	 ' m m 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 
 
 	 S l o t ( S l o t _ M _ 2 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M _ 2 )   =   2 5 0         	 	 ' d e g r e e 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 
 
 	 S l o t ( S l o t _ M _ 3 )   =   R e s e t 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t ( S l o t _ M _ 3 )   =   4 0           	 	 ' d e g r e e 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 
 
 	 S l o t ( S l o t _ M _ 1 )   =   2 9 8 	 	 	 ' m m 
 
 	 S l o t ( S l o t _ M _ 2 )   =   2 4 8           	 	 ' d e g r e e 
 
 	 S l o t ( S l o t _ M _ 3 )   =   4 2           	 	 ' d e g r e e 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t Z e r o P o s 
 
 	 W a i t   A b s ( S l o t ( 1 5 0 ) )   <   5 0 
 
 	 W a i t   A b s ( S l o t ( 2 5 0 ) )   <   5 0 
 
 	 W a i t   A b s ( S l o t ( 3 5 0 ) )   <   5 0 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%%
 
 '   Q%  W A I T   A L L   M O T O R   u n t i l   s t o p p e d                           Q%  %      %  %%%%  %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%%  %    %  %      %
 
 L a b e l   W a i t A l l M o t o r s 
 
 	 V a r i a b l e   N u m e r i c   W A M 1 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 F o r   W A M 1   =   1   T o   I n f i n i t y 
 
 	 	 I f   A b s ( S l o t ( S l o t _ M _ 1   +   1 ) )   <   0 . 0 1 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 U p d a t e B u t t o n s 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%%
 
 '   Q%  G R I P P E R                                                           Q%  %      %  %%%%  %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%%  %    %  %      %
 
 L a b e l   O p e n G r i p p e r 
 
 	 S l o t ( S l o t _ M _ 5 )   =   0 
 
 	 B u t t o n   O p e n G r i p p e r   D i s a b l e d 
 
 	 B u t t o n   C l o s e G r i p p e r   E n a b l e d 
 
 R e t u r n 
 
 
 
 L a b e l   C l o s e G r i p p e r 
 
 	 S l o t ( S l o t _ M _ 5 )   =   1 0 0 0 
 
 	 B u t t o n   O p e n G r i p p e r   E n a b l e d 
 
 	 B u t t o n   C l o s e G r i p p e r   D i s a b l e d 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E M E R G E N C Y                                                                 Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E m e r g e n c y 
 
 ' 	 D i s a b l e A l l B u t t o n s 
 
 ' 	 B u t t o n   1 5   E n a b l e d 
 
 ' 	 B u t t o n   1 5   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 ' 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 ' 	 	 R e d O n 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 R g b O f f 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 L o a d   s o u n d \ A l a r m 1 0 b . w a v 
 
 ' 	 N e x t 
 
 S t o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                           Q%  %%%%  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 L a b e l   E n a b l e V o i c e 
 
 	 T T S   S e t V o l u m e   1 0 0 
 
 	 B u t t o n   E n a b l e V o i c e   D i s a b l e d 
 
 	 B u t t o n   D i s a b l e V o i c e   E n a b l e d 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e V o i c e 
 
 	 T T S   S e t V o l u m e   0 
 
 	 B u t t o n   E n a b l e V o i c e   E n a b l e d 
 
 	 B u t t o n   D i s a b l e V o i c e   D i s a b l e d 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%%
 
 '   Q%  L E D   C O L O R S                                                               Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 L a b e l   R e d O n 
 
 	 T T S   S p e a k   " S t a t u s   r e d . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   M a g e n t a O n 
 
 	 T T S   S p e a k   " S t a t u s   m a g e n t a . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   Y e l l o w O n 
 
 	 T T S   S p e a k   " S t a t u s   y e l l o w . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   9 0 0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   4 0 0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   G r e e n O n 
 
 	 T T S   S p e a k   " S t a t u s   g r e e n . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   B l u e O n 
 
 	 T T S   S p e a k   " S t a t u s   b l u e . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   W h i t e O n 
 
 	 T T S   S p e a k   " S t a t u s   w h i t e . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   1 0 0 0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R g b O f f 
 
 	 T T S   S p e a k   " S t a t u s   b l a c k . " 
 
 	 S l o t   S l o t _ L e d R _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d G _ S c a r a   =   0 
 
 	 S l o t   S l o t _ L e d B _ S c a r a   =   0 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   R e d B l i n k 
 
 	 R e d O n 
 
 	 W h i t e O n 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %      %
 
 '   Q%    S A Y                                                                           Q%  %%%%  %%%%    %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %      %
 
 
 
 L a b e l   S a y G l u e S h o e 
 
 	 T T S   S p e a k   " S t a r t   g l u e   t h e   s h o e   d e m o . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y Y e l l o w 
 
 	 T T S   S p e a k   " G o i n g   Y e l l o w   t a r g e t . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y G r e e n 
 
 	 T T S   S p e a k   " G o i n g   G r e e n   t a r g e t ,   t i m e   i n t e r p o l a t e   1   s e c o n d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y B l u e 
 
 	 T T S   S p e a k   " R o b o t A N N O   G o i n g   B l u e   t a r g e t . " 
 
 	 W a i t   T T S r e a d y 
 
 	 C l e a r C o m m a n d 
 
 R e t u r n 
 
 
 
 L a b e l   S a y R e d 
 
 	 T T S   S p e a k   " G o i n g   R e d   t a r g e t ,   t i m e   i n t e r p o l a t e   2   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y W h i t e 
 
 	 T T S   S p e a k   " G o i n g   W h i t e   t a r g e t ,   t i m e   i n t e r p o l a t e   2 . 5   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y B l a c k 
 
 	 T T S   S p e a k   " G o i n g   B l a c k   t a r g e t ,   t i m e   i n t e r p o l a t e   3   v a l u e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y F a s t R n d M o v e 
 
 	 T T S   S p e a k   " M a k i n g   r a n d o m   m o v e m e n t   a t   h i g h   s p e e d . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%    %    %  %%%%  %      %
 
 '   Q%  J O G   W I T H   K E Y B O A R D                                                 Q%      %    %    %  %  %%    %%%    %%%      %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%    %%%%  %%%%    %  %%  %%%%      %
 
 L a b e l   E x e c K e y s 
 
 	 V a r i a b l e   N u m e r i c   J o g S p e e d   =   0 . 1 
 
 	 S e l e c t   T r u e 
 
 	 	 C a s e   K e y ( " S H I F T " ) 
 
 	 	 	 J o g S p e e d   =   J o g S p e e d   *   0 . 0 1 
 
 	 	 C a s e   K e y ( " C T R L " ) 
 
 	 	 	 J o g S p e e d   =   J o g S p e e d   *   0 . 0 0 1 
 
 	 E n d S e l e c t 
 
 	 ' 
 
 	 S e l e c t   M o t o r T o E d i t 
 
 	 	 C a s e   1 
 
 	 	 	 I f   K e y ( " U p " ) 
 
 	 	 	 	 S l o t ( S l o t _ M _ 1 )   =   L i m i t ( S l o t ( S l o t _ M _ 1 )   -   J o g S p e e d ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 	 E n d I f 
 
 	 	 	 I f   K e y ( " D o w n " ) 
 
 	 	 	 	 S l o t ( S l o t _ M _ 1 )   =   L i m i t ( S l o t ( S l o t _ M _ 1 )   +   J o g S p e e d ,   M 1 m i n ,   M 1 m a x ) 
 
 	 	 	 E n d I f 
 
 	 E n d S e l e c t 
 
 	 ' 
 
 	 P r i n t V a l u e s 
 
 	 ' E n a b l e M o t o r s 
 
 	 ' Y e l l o w O n 
 
 	 U p d a t e B u t t o n s 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%      %%  %%  %%%%  %%%%%
 
 '   Q%    M O T O R   S E L E C T I O N   F O R   J O G                                   Q%      %    %    %  %  %%      %  %  %  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%    %%%%  %%%%      %      %  %%%%      %
 
 V a r i a b l e   N u m e r i c   M o t o r T o E d i t 
 
 L a b e l   d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 1   C o l o r   L i g h t B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 1 
 
 	 M o t o r T o E d i t   =   1 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 1   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 2 
 
 	 M o t o r T o E d i t   =   2 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 2   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 3 
 
 	 M o t o r T o E d i t   =   3 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 3   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 L a b e l   B t n C o o r d _ M 4 
 
 	 M o t o r T o E d i t   =   4 
 
 	 d e f a u l t c o l o r s 
 
 	 B u t t o n   B t n C o o r d _ M 4   C o l o r   B l u e 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     P R I N T   C O O R D I N A T E S   A N D   U P D A T E   C O O R D I N A T E   B U T T O N S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   P r i n t V a l u e s 
 
 	 s 1   =   " M o v e T o   "   +   F o r m a t ( S l o t ( S l o t _ M _ 1 ) ,   " 0 . 0 0 " ) 
 
 	 P r i n t   C R L F   +   s 1 
 
 R e t u r n 
 
 
 
 L a b e l   U p d a t e B u t t o n s 
 
 	 B u t t o n   B t n C o o r d _ M 1   T e x t   " M 1 = "   +   F o r m a t ( S l o t ( S l o t _ M _ 1 )   -   S l o t ( S l o t _ M _ 1   +   1 ) ,   " 0 . 0 0 " )   +   " m m " 
 
 	 B u t t o n   B t n C o o r d _ M 2   T e x t   " M 2 = "   +   F o r m a t ( S l o t ( S l o t _ M _ 2 )   -   S l o t ( S l o t _ M _ 2   +   1 ) ,   " 0 . 0 0 " )   +   "  " 
 
 	 B u t t o n   B t n C o o r d _ M 3   T e x t   " M 3 = "   +   F o r m a t ( S l o t ( S l o t _ M _ 3 )   -   S l o t ( S l o t _ M _ 3   +   1 ) ,   " 0 . 0 0 " )   +   "  " 
 
 	 B u t t o n   B t n C o o r d _ M 4   T e x t   " M 4 = "   +   F o r m a t ( S l o t ( S l o t _ M _ 4 )   -   S l o t ( S l o t _ M _ 4   +   1 ) ,   " 0 . 0 0 " )   +   "  " 
 
 	 
 
 	 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 1   T e x t   " A b s   M 1 = "   +   F o r m a t ( S l o t ( 1 6 0 ) ,   " 0 0 0 0 0 " ) 
 
 	 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 2   T e x t   " A b s   M 2 = "   +   F o r m a t ( S l o t ( 2 6 0 ) ,   " 0 0 0 0 0 " ) 
 
 	 ' B u t t o n   B t n A b s o l u t e C o o r d _ M 3   T e x t   " A b s   M 3 = "   +   F o r m a t ( S l o t ( 3 6 0 ) ,   " 0 0 0 0 0 " ) 
 
 	 
 
 	 ' B u t t o n   T e m p M 1   T e x t   " T e m p M 1 = "   +   F o r m a t ( S l o t ( 1 5 6 ) ,   " 0 . 0 " )   +   "  " 
 
 	 ' B u t t o n   T e m p M 2   T e x t   " T e m p M 2 = "   +   F o r m a t ( S l o t ( 2 5 6 ) ,   " 0 . 0 " )   +   "  " 
 
 	 ' B u t t o n   T e m p M 3   T e x t   " T e m p M 3 = "   +   F o r m a t ( S l o t ( 3 5 6 ) ,   " 0 . 0 " )   +   "  " 
 
 	 ' B u t t o n   V o l t M 1   T e x t   " V o l t M 1 = "   +   F o r m a t ( ( S l o t ( 1 5 5 ) / 3 2 7 ) ,   " 0 . 0 " ) 
 
 	 ' B u t t o n   V o l t M 2   T e x t   " V o l t M 2 = "   +   F o r m a t ( ( S l o t ( 2 5 5 ) / 3 2 7 ) ,   " 0 . 0 " ) 
 
 	 ' B u t t o n   V o l t M 3   T e x t   " V o l t M 3 = "   +   F o r m a t ( ( S l o t ( 3 5 5 ) / 3 2 7 ) ,   " 0 . 0 " ) 
 
 	 ' 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   d e b u g   a b s o l u t e   p o s i t i o n 
 
 	 ' V a r i a b l e   N u m e r i c   U B 1 
 
 	 ' U B 1   =   S l o t ( 1 6 0 ) 
 
 	 ' P r i n t   U B 1 
 
 	 ' P r i n t   F o r m a t ( U B 1   /   1 1 2   /   4 , " 0 . 0 0 " )       ' 4 4 8 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%  %%  %%      %%%%  %%  %%  %%%%  %%%%
 
 '   Q%  C O M M A N D S   F R O M   C O B O T                                             Q%  %        %    %  %  %  %  %  %  %      %%%        %      %%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %      %  %      %      %%%%  %%  %%  %%%%  %%%%
 
 L a b e l   E v e n t _ C o m m a n d s F r o m C o b o t 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 P r i n t   "   E x e c :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E x t r a c t   f i r s t   w o r d 
 
 	 S e l e c t   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   0 ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   A C T I O N S 
 
 	 	 C a s e   " W a i t A l l M o t o r s " 
 
 	 	 	 W a i t A l l M o t o r s 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   G R I P P E R 
 
 	 	 C a s e   " O p e n " 
 
 	 	 	 O p e n G r i p p e r 
 
 	 	 C a s e   " C l o s e " 
 
 	 	 	 C l o s e G r i p p e r 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   c o l o r s 
 
 	 	 C a s e   " R e d " 
 
 	 	 	 R e d O n 
 
 	 	 C a s e   " G r e e n " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " B l u e " 
 
 	 	 	 B l u e O n 
 
 	 	 C a s e   " Y e l l o w " 
 
 	 	 	 Y e l l o w O n 
 
 	 	 C a s e   " R G B O F F " 
 
 	 	 	 R g b O f f 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S p e a k i n g 
 
 	 	 C a s e   " S a y G l u e S h o e " 
 
 	 	 	 S a y G l u e S h o e 
 
 	 	 C a s e   " S a y Y e l l o w " 
 
 	 	 	 S a y Y e l l o w 
 
 	 	 C a s e   " S a y G r e e n " 
 
 	 	 	 S a y G r e e n 
 
 	 	 C a s e   " S a y B l u e " 
 
 	 	 	 S a y B l u e 
 
 	 	 C a s e   " S a y R e d " 
 
 	 	 	 S a y R e d 
 
 	 	 C a s e   " S a y W h i t e " 
 
 	 	 	 S a y W h i t e 
 
 	 	 C a s e   " S a y B l a c k " 
 
 	 	 	 S a y B l a c k 
 
 	 	 C a s e   " S a y F a s t R n d M o v e " 
 
 	 	 	 S a y F a s t R n d M o v e 
 
 	 	 	 ' 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   C O L O R S 
 
 	 	 C a s e   " R e d O n " 
 
 	 	 	 R e d O n 
 
 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " M a g e n t a O n " 
 
 	 	 	 M a g e n t a O n 
 
 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 G r e e n O n 
 
 	 	 C a s e   " B l u e O n " 
 
 	 	 	 B l u e O n 
 
 	 	 C a s e   " Y e l l o w O n " 
 
 	 	 	 Y e l l o w O n 
 
 	 	 C a s e   " W h i t e O n " 
 
 	 	 	 W h i t e O n 
 
 	 	 C a s e   " R G B O F F " 
 
 	 	 	 R g b O f f 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   C o m m a n d s   w i t h   p a r a m e t e r s 
 
 	 	 C a s e   " P a u s e " 
 
 	 	 	 W a i t   S e c o n d s   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   1 ) 
 
 	 	 C a s e   " S a y " 
 
 	 	 	 T T S   S p e a k   M i d ( C o m m a n d T e x t ,   5 ) 
 
 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   U n r e c o g n i z e d   c o m m a n d 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 S t o p 	 	 	 	 	 	 	 	 ' 
 
 	 E n d S e l e c t 
 
 	 C l e a r C o m m a n d 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ C o m m a n d s F r o m C o b o t )   =   " " 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O B O T   F I L E   M A N A G E M E N T 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   I n i t S e q u e n c e P a t h s 
 
 	 V a r i a b l e   S t r i n g   E d i t o r F o l d e r 
 
 	 V a r i a b l e   S t r i n g   E d i t o r A p p 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e P a t h A n d N a m e 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e N a m e 
 
 	 ' 
 
 	 E d i t o r F o l d e r   =   " . \ A p p s \ T h e r e m i n o _ E d i t o r \ " 
 
 	 ' 
 
 	 E d i t o r A p p   =   E d i t o r F o l d e r   +   " T h e r e m i n o _ E d i t o r . e x e " 
 
 	 ' 
 
 	 S e q u e n c e P a t h A n d N a m e   =   E d i t o r F o l d e r   +   " S e q u e n c e s \ "   +   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O M M A N D S   T O   C o b o t 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 L a b e l   S e n d C o m m a n d 
 
 	 V a r i a b l e   S t r i n g   S C 1 
 
 	 V a r i a b l e   N u m e r i c   S C 2   =   0 . 5   	 	 	 	 ' < - -   t i m e o u t 
 
 	 V a r i a b l e   N u m e r i c   S C 3 
 
 	 S l o t T e x t   S l o t _ C o m m a n d s T o C o b o t   =   S C 1 
 
 	 F o r   S C 3   =   0 . 1   T o   S C 2   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S l o t _ C o m m a n d s T o C o b o t )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c C o b o t 
 
 	 V a r i a b l e   N u m e r i c   E C 1 
 
 	 F o r   E C 1   =   1   T o   I n f i n i t y 
 
 	 	 S e n d C o m m a n d ( D i s a b l e R e p e a t ) 
 
 	 	 S e n d C o m m a n d ( S e l e c t L i n e   1 ) 
 
 	 	 S e n d C o m m a n d ( S t a r t E x e c u t i o n ) 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 S e n d C o m m a n d ( S t o p E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 	 	 U p d a t e B u t t o n s 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 I f   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m C o b o t )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S e l e c t S e q u e n c e 
 
 	 V a r i a b l e   S t r i n g   S C F 1 
 
 	 S C F 1   =   S e l e c t F i l e ( " A p p s \ T h e r e m i n o _ C o b o t \ S e q u e n c e s " ) 
 
 	 I f   S C F 1   < >   " " 
 
 	 	 S e q u e n c e N a m e   =   S C F 1 
 
 	 E n d I f 
 
 	 S e n d C o m m a n d ( L o a d S e q u e n c e   +   S e q u e n c e N a m e ) 
 
 	 S h o w S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w S e q u e n c e N a m e 
 
 	 B u t t o n   S e l e c t S e q u e n c e   T e x t   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' I n d e x     N a m e                                                     C u l t u r e     G e n d e r       A g e 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' 1             M i c r o s o f t   D a v i d   D e s k t o p               e n - U S         M a l e           A d u l t 
 
 ' 2             M i c r o s o f t   Z i r a   D e s k t o p                 e n - U S         F e m a l e       A d u l t 
 
 ' 3             M i c r o s o f t   E l s a   D e s k t o p                 i t - I T         F e m a l e       A d u l t 
 
 ' 4             M i c r o s o f t   H u i h u i   D e s k t o p             z h - C N         F e m a l e       A d u l t 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%  %%%        %%%%  %%%%  %%  %%
 
 '   Q%  C O M M A N D S   t o   C O B O T                                                     Q%    %        %    %  %%%%      %        %    %  %  %  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%  %%%%  %%%%      %%%%  %%%%  %      %
 
 
 
 
 
 